package org.xg.study.servlet;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.annotation.WebInitParam;
import java.io.IOException;

/**
 * @author CMG
 * @version 1.0
 * @description
 * @cLassName MyFilter
 * @date 2021/9/24 15:33
 **/
@WebFilter(dispatcherTypes = {
        DispatcherType.REQUEST,
        DispatcherType.FORWARD,
        DispatcherType.INCLUDE,
        DispatcherType.ERROR
    },
        asyncSupported = true,
        description = "过滤器",
        urlPatterns = {"/login"},
        initParams = {
                @WebInitParam(name = "name", value = "xg", description = "name描述")
        }
)
public class MyFilter implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {

    }

    @Override
    public void destroy() {

    }
}
